package controllers

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
)

type UserData struct{
	Id int64
	Username string
	Password string
}

type TestModelController struct {
	beego.Controller
}

func (c *TestModelController) Get() {
	orm.RegisterDataBase("default", "mysql", "root:a123456@tcp(120.78.222.112)")
	//orm.RegisterModel(new)
}


func (c *TestModelController) Post() {

}

